<template>
<div>
  <h1>待处理请假审批</h1>
  <table  v-for="i in list" :key="i.id" border="1" cellpadding="0">
    <tr v-for="(j,x) in i['params']" :key="j.id">
      <td>{{x}}:  {{j}}</td>
    </tr>
    <tr>
      <td>
       <router-link :to="{path:'/qj_xq',query:{approval_id:i.id}}">详情页面</router-link>
      </td>
    </tr>
  </table>

</div>
</template>

<script>
import axios from "axios";

export default {
  name: "qjsp",
  data(){
    return{
      id:localStorage.getItem('userid'),
      list:[],
    }
  },
  methods:{
    show(){
      axios({'url':'user/show_app?id='+this.id,'method':'get'})
      .then(i=>{
        this.list = i.data.list
      })
    },
  },
  mounted() {
    this.show()
  }
}
</script>

<style scoped>

</style>